package com.uchiha.nova.core.props;


import com.uchiha.nova.core.aspect.NovaLogLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * @author 周林静
 * @Date 2021-10-26 9:15
 * @Version 1.0
 */
@Getter
@Setter
@RefreshScope
@ConfigurationProperties(NovaLogLevel.REQ_LOG_PROPS_PREFIX)
public class NovaRequestLogProperties {
    /**
     * 是否开启请求日志
     */
    private Boolean enabled = true;

    /**
     * 日志级别配置，默认：BODY
     */
    private NovaLogLevel level = NovaLogLevel.BODY;
}
